package org.framework.edge.builder.application;

import org.framework.edge.builder.application.command.docker.repository.*;
import org.framework.edge.builder.application.dto.DockerRepositoryDTO;
import org.framework.edge.builder.domain.model.docker.repository.DockerRepository;
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
import org.wu.framework.web.response.Result;

import java.util.List;
/**
 * describe Docker 仓库 
 *
 * @author Jia wei Wu
 * @date 2024/08/13 07:39 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplication 
 **/

public interface DockerRepositoryApplication {


    /**
     * describe 新增Docker 仓库
     *
     * @param dockerRepositoryStoryCommand 新增Docker 仓库     
     * @return {@link Result<DockerRepository>} Docker 仓库新增后领域对象     
     
     * @author Jia wei Wu
     * @date 2024/08/13 07:39 晚上
     **/

    Result<DockerRepository> story(DockerRepositoryStoryCommand dockerRepositoryStoryCommand);

    /**
     * 仓库登录
     *
     * @param dockerRepository 仓库信息
     * @return 仓库信息
     */
    Result<?> login(DockerRepository dockerRepository);

    /**
     * describe 批量新增Docker 仓库
     *
     * @param dockerRepositoryStoryCommandList 批量新增Docker 仓库     
     * @return {@link Result<List<DockerRepository>>} Docker 仓库新增后领域对象集合     
     
     * @author Jia wei Wu
     * @date 2024/08/13 07:39 晚上
     **/

    Result<List<DockerRepository>> batchStory(List<DockerRepositoryStoryCommand> dockerRepositoryStoryCommandList);

    /**
     * describe 更新Docker 仓库
     *
     * @param dockerRepositoryUpdateCommand 更新Docker 仓库     
     * @return {@link Result<DockerRepository>} Docker 仓库领域对象     
     
     * @author Jia wei Wu
     * @date 2024/08/13 07:39 晚上
     **/

    Result<DockerRepository> updateOne(DockerRepositoryUpdateCommand dockerRepositoryUpdateCommand);




    /**
     * describe 查询单个Docker 仓库
     *
     * @param dockerRepositoryQueryOneCommand 查询单个Docker 仓库     
     * @return {@link Result<DockerRepositoryDTO>} Docker 仓库DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/08/13 07:39 晚上
     **/

    Result<DockerRepositoryDTO> findOne(DockerRepositoryQueryOneCommand dockerRepositoryQueryOneCommand);

    /**
     * describe 查询多个Docker 仓库
     *
     * @param dockerRepositoryQueryListCommand 查询多个Docker 仓库     
     * @return {@link Result <List<DockerRepositoryDTO>>} Docker 仓库DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/08/13 07:39 晚上
     **/

    Result <List<DockerRepositoryDTO>> findList(DockerRepositoryQueryListCommand dockerRepositoryQueryListCommand);

    /**
     * describe 分页查询多个Docker 仓库
     *
     * @param dockerRepositoryQueryListCommand 分页查询多个Docker 仓库     
     * @return {@link Result <LazyPage<DockerRepositoryDTO>>} 分页Docker 仓库DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/08/13 07:39 晚上
     **/

    Result <LazyPage<DockerRepositoryDTO>> findPage(int size,int current,DockerRepositoryQueryListCommand dockerRepositoryQueryListCommand);

    /**
     * describe 删除Docker 仓库
     *
     * @param dockerRepositoryRemoveCommand 删除Docker 仓库     
     * @return {@link Result<DockerRepository>} Docker 仓库     
     
     * @author Jia wei Wu
     * @date 2024/08/13 07:39 晚上
     **/

    Result<DockerRepository> remove(DockerRepositoryRemoveCommand dockerRepositoryRemoveCommand);

}